@width: 100%;

.display {
  display: inline-block;
  vertical-align: top;
}

.box {
  box-sizing: border-box;
}

.ly-content {
  font-size: 0;
  .ly-address {
    width: 50%;
    .display;
    margin-top: 30px;
    &.ly-pas {
      padding-left: 100px;
      .box;
      h1 {
        font-weight: 700;
      }
      .ly-intro {
        width: @width;
        text-align: center;
        margin: 40px 0 20px;
        padding: 40px 0;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        img {
          margin-bottom: 30px;
          width: 180px;
        }
        p {
          font-size: 16px;
          line-height: 25px;
        }
      }
      h4 {
        line-height: 20px;
        font-size: 12px;
        padding-left: 30px;
        .box;
      }
    }
    h1 {
      font-size: 16px;
      line-height: 40px;
      color: #333;
      .ly-add {
        float: right;
        margin-right: 30px;
        color: #000;
      }
    }
    .ly-list {
      li {
        width: @width;
        margin-top: 20px;
        padding-bottom: 20px;
        border-bottom: 1px dashed #e5e5e5;
        position: relative;
        padding-left: 30px;
        .box;
        input {
          position: absolute;
          top: 50%;
          left: 0;
          margin-top: -16px;
        }
        h4 {
          font-size: 16px;
          line-height: 30px;
          span {
            margin-left: 100px;
          }
        }
        p {
          line-height: 20px;
          font-size: 14px;
          margin-top: 10px;
        }
      }
    }
    .ly-submit {
      width: 160px;
      height: 35px;
      line-height: 35px;
      text-align: center;
      background: #000;
      font-size: 14px;
      margin-top: 100px;
      a {
        width: @width;
        height: 35px;
        color: #fff;
        display: block;
      }
    }
  }
}

.ly-layer {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: fixed;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  .ly-cont {
    width: 300px;
    left: 50%;
    margin-left: -150px;
    position: absolute;
    top: 30%;
    padding: 30px;
    background: #fff;
    .ly-close {
      position: absolute;
      top: -60px;
      right: 0;
      z-index: 9;
      cursor: pointer;
    }
    .ly-list {
      width: @width;
      li {
        width: @width;
        line-height: 50px;
        padding: 5px 0;
        .box;
        .ly-input {
          width: 300px;
          height: 40px;
          border: none;
          font-size: 14px;
          border-bottom: 1px solid #ccc;
        }
        .ly-code {
          font-size: 14px;
          margin-left: 20px;
          color: #333;
          cursor: pointer;
        }
        .ly-submit-up {
          width: 300px;
          height: 35px;
          line-height: 35px;
          background: #000;
          color: #fff;
          cursor: pointer;
          text-align: center;
          font-size: 16px;
          margin: 20px 0 0;
          display: block;
        }
        .ly-select {
          width: 300px;
          height: 40px;
          border: none;
          font-size: 14px;
          border-bottom: 1px solid #ccc;
        }
        p {
          line-height: 25px;
          input {
            float: left;
            margin: 6px 4px;
          }
        }
      }
    }
  }
}

@media screen  and (max-width: 760px) {
  .ly-content {
    .ly-address {
      width: @width;
      h1 {
        .ly-add {
          margin-right: 0;
          color: #000;
          text-decoration: underline;
        }
      }
      .ly-list{
        li{
          margin-top: 10px;
          padding-bottom: 10px;
          h4{
            span{
              float: right;
            }
          }
        }
      }
      .ly-submit{
        width: @width;
        background: #000;
        margin-top: 50px;
        line-height: 45px;
        height: 45px;
      }
      &.ly-pas{
        padding-left: 0;
        .ly-intro{
          border-bottom: none;
          border-top: none;
          margin-top: 0;
        }
      }
    }
  }
}
